/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

/**
 *
 * @author Administrator
 */
public class E_Product {
    private int proID;
    private String proName;
    private String proDescribe;
    private short  proWarranty;
    private int proQuantity;

    public E_Product(){
        this.proID=0;
        this.proName="";
        this.proDescribe="";
        this.proWarranty=0;
        this.proQuantity=0;
    }

    public E_Product(int proID,String proName,String proDescribe,
                short proWarranty,int proQuantity){
        this.proID=proID;
        this.proName=proName;
        this.proDescribe=proDescribe;
        this.proWarranty=proWarranty;
        this.proQuantity=proQuantity;
    }

    public void setProductID(int proID){
        this.proID=proID;
    }
    public int getProductID(){
        return this.proID;
    }

    public void setProductName(String proName){
        this.proName=proName;
    }
    public String getProductName(){
        return this.proName;
    }

    public void setProductDescribe(String proDescribe){
        this.proDescribe=proDescribe;
    }
    public String getProductDescribe(){
        return this.proDescribe;
    }

    public void setProductWarranty(short proWarranty){
        this.proWarranty=proWarranty;
    }
    public short getProductWarranty(){
        return this.proWarranty;
    }

    public void setProductQuantity(int proQuantity){
        this.proQuantity=proQuantity;
    }
    public int getProductQuantity(){
        return this.proQuantity;
    }

    public String toString(){
        String proInfo="ProductID : "+proID;
               proInfo+="Name : "+proName;
               proInfo+="Describe : "+proDescribe;
               proInfo+="Warranty : "+proWarranty;
               proInfo+="Quantity : "+proQuantity;
        return proInfo;
    }
}
